﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Entitys.Inv
{
    /// <summary>
    /// 库存表
    /// </summary>
    public class inv_stock
    {
        [Key]
        public int stock_id { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string stock_name { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        public string pro_code { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        public string pro_brand { get; set; }

        /// <summary>
        /// 字典编码（可能用于分类）单位
        /// </summary>
        public int dict_code { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string stock_model { get; set; }

        /// <summary>
        /// 产品属性
        /// </summary>
        public int Pro_attribute_id { get; set; }

        /// <summary>
        /// 成本价
        /// </summary>
        public decimal pro_cost_price { get; set; }

        /// <summary>
        /// 销售单价
        /// </summary>
        public decimal Pro_sale_price { get; set; }

        /// <summary>
        /// 库存数量
        /// </summary>
        public decimal stock_numder { get; set; }

        /// <summary>
        /// 入库单号
        /// </summary>
        public string stock_entry_no { get; set; }

        /// <summary>
        /// 仓库编码
        /// </summary>
        public string Warehouse_Code { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string? Warehouse_Name { get; set; }  // 保留可空版本（去重后）

        /// <summary>
        /// 库区编码
        /// </summary>
        public string? Zone_Code { get; set; }  // 保留可空版本（去重后）

        /// <summary>
        /// 库区名称
        /// </summary>
        public string? Zone_Name { get; set; }  // 保留可空版本（去重后）

        /// <summary>
        /// 仓位编码
        /// </summary>
        public string? Location_Code { get; set; }  // 保留可空版本（去重后）

        /// <summary>
        /// 仓位名称
        /// </summary>
        public string? Location_Name { get; set; }  // 保留可空版本（去重后）

        /// <summary>
        /// 供应商编码
        /// </summary>
        public string Vendor_Code { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string Vendor_Name { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string create_by { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? Create_Time { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string update_by { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? Update_Time { get; set; }

        /// <summary>
        /// 删除标志（0-正常，1-删除）
        /// </summary>
        public char? Del_Flag { get; set; }

        /// <summary>
        /// 预计出库数量
        /// </summary>
        public decimal Stock_planned_outbound_qty { get; set; }

        /// <summary>
        /// 预计入库数量
        /// </summary>
        public decimal Stock_planned_store_qty { get; set; }
       
    }
}
